package com.zly.demo.redislimit.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface RedisLimit {
    String key() default "";

    long limit() default 10;

    long expire() default 1;

    String msg() default "访问过于频繁";
}
